﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DotNetNuke;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Security;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using DotNetNuke.Services.FileSystem;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Tabs;
using DotNetNuke.UI.Modules;
using DotNetNuke.UI.Skins;

namespace CharityGamesOnline.Modules.Common
{
    public partial class SiteMap : SkinObjectBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                SiteMapProvider siteMap = new SiteMapProvider();
                ltlSiteMap.Text = siteMap.BuildSiteMap(PortalSettings.PortalId);

                //if (!Page.IsPostBack){}
            }
            catch (Exception ex)
            {
                ltlSiteMap.Text = "ERROR:  " + ex.Message.ToString();
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }
    }
}